/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 * Copyright 2009 Synergy Energy Holdings, LLC. All rights reserved.
 * 
 * Email.java
 * @date: Mar 5, 2009
 * @author mlee
 */

package experimental.com.rhythm.commons.validation.bean.annotation;

import experimental.com.rhythm.commons.validation.bean.LengthConstraintValidator;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 *
 * @author mlee
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Constraint(validatedBy=LengthConstraintValidator.class)
public @interface Length {
    String message() default "field length is within range";
    int min() default 0;
    int max() default Integer.MAX_VALUE;
}
